//
//  HFOLViewController.m
//  HFOuLiao
//
//  Created by haifeng on 16/7/5.
//  Copyright © 2016年 sangziwangluo. All rights reserved.
//

#import "HFOLViewController.h"
#import "HFOLTabBarController.h"
@interface HFOLViewController ()

@end

@implementation HFOLViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImage *image = [UIImage imageNamed:@"About_Iphone_6p"];
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
    imageView.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:imageView];
    self.view.backgroundColor = [UIColor yellowColor];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    [self setUI];

}
- (void)setUI{
    HFOLTabBarController *tab = [[HFOLTabBarController alloc] init];
//    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tab];
    [self presentViewController:tab animated:YES completion:nil];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
